package edu.whu.notepal;

import edu.whu.notepal.utils.MyWebSocket;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
@MapperScan(basePackages = "edu.whu.notepal.mapper")
public class NotepalApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext applicationContext = SpringApplication.run(NotepalApplication.class, args);

        MyWebSocket.setApplicationContext(applicationContext);
    }




}
